 package com.lj.mcore.entity;

 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;
 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_res")
 public class Res extends IdEntity
 {
   private String resName;
   private String type;
   private String value;
 
   @ManyToMany(mappedBy="reses", targetEntity= Role.class, fetch=FetchType.EAGER)
   private List<Role> roles = new ArrayList();
   private int sequence;
   private String info;
 
   public String getResName() {
     return this.resName;
   }
 
   public void setResName(String resName) {
     this.resName = resName;
   }
 
   public String getType() {
     return this.type;
   }
 
   public void setType(String type) {
     this.type = type;
   }
 
   public String getValue() {
     return this.value;
   }
 
   public void setValue(String value) {
     this.value = value;
   }
 
   public List<Role> getRoles() {
     return this.roles;
   }
 
   public void setRoles(List<Role> roles) {
     this.roles = roles;
   }
 
   public String getInfo() {
     return this.info;
   }
 
   public void setInfo(String info) {
     this.info = info;
   }
 
   public int getSequence() {
     return this.sequence;
   }
 
   public void setSequence(int sequence) {
     this.sequence = sequence;
   }
 }



 
 